var openBtn = document.querySelector("#open");
var closeBtn = document.querySelector("#close");
var oDiv = document.querySelector("#float");

openBtn.onclick = function () {
  oDiv.style.transform = "translateX(100%)";
  oDiv.style.transition = "all 2s";
}

closeBtn.onclick = function () {
  oDiv.style.transform = "translateX(-100%)";
  oDiv.style.transition = "all 2s";
}